import { _decorator, Component, Node, Label, director, color, Color } from 'cc';
import { UICtrl, UIMgr } from '../../Managers/UIMgr';
const { ccclass, property } = _decorator;

@ccclass('ShowRoom_Ctrl')
export class ShowRoom_Ctrl extends UICtrl {

    onLoad() {
        super.onLoad()
        
        this.addButtonListen('Footer/Right', this, this.onRightClick)
    }

    private onRightClick() {
        UIMgr.Instance.removeUI('ShowRoom')
        UIMgr.Instance.showUI('UIGame')
    }

    start() {

    }

    update(deltaTime: number) {
        
    }
}

